﻿using System.Web.Mvc;
using System.Net;

namespace ECommerce.Web.Controllers
{
    public class ErrorController : Controller
    {
        [ActionName("500")]
        public ActionResult HttpInternalServerError()
        {
            HttpContext.Response.StatusCode = (int)HttpStatusCode.InternalServerError;

            return View();
        }
        
        [ActionName("403")]
        public ActionResult HttpForbidden()
        {
            HttpContext.Response.StatusCode = (int)HttpStatusCode.Forbidden;

            return View();
        }

        [ActionName("404")]
        public ActionResult HttpNotFound()
        {
            HttpContext.Response.StatusCode = (int)HttpStatusCode.NotFound;

            return View();
        }
    }
}
